how to add one to a variable in python

26

x = 20
x = x+1
print(x)

or 

x = 20
x+=1
print(x)

Comments

Submit
0 Comments